KERN_DIR = /program/kernel/imx6ul/cairo/

all:
	make -C $(KERN_DIR) M=`pwd` modules 
	arm-poky-linux-gnueabi-gcc -o test test.c

clean:
	make -C $(KERN_DIR) M=`pwd` modules clean
	rm -rf modules.order

# 参考内核源码drivers/char/ipmi/Makefile
# 要想把a.c, b.c编译成ab.ko, 可以这样指定:
# ab-y := a.o b.o
# obj-m += ab.o



obj-m += wkup.o
obj-m += tasklet.o
obj-m += drv_gpio.o
obj-m += workq.o
obj-m += thread_irq.o
